#!/bin/bash
echo "*************** build for go_lib begin ******************"
go build -buildmode=c-archive -o httplib.a main.go
echo "*************** build for go_lib over *******************"
echo "*************** build for c++ client test program **************"
g++ -std=c++11 test.cpp -L. httplib.a -lpthread -o client
echo "*************** build over ******************************"
echo "*************** build for c++ server test program **************"
g++ -std=c++11 svrtest.cpp -L. httplib.a -lpthread -o server
echo "*************** build over ******************************"
